<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>ajax测试</title>
		<script src="../baseUrl.js" type="text/javascript" charset="utf-8"></script>
		<script src="./js/ajax.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<script type="module">
			// http(`${baseUrl}/api/common/get`, {
			// 	aa: 'aaa',
			// 	bb: 'bbb'
			// }).then(data => {
			// 	console.log(data)
			// })
			// http(`${baseUrl}/api/common/delete`, {
			// 	aa: 'aaa',
			// 	bb: 'bbb'
			// }, 'delete').then(data => {
			// 	console.log(data)
			// })




			http(`${baseUrl}/api/common/put`, {
				// query: {
				// 	aa: 'aaa',
				// 	bb: 'bbb',
				// },
				body: {
					cc: 'ccc',
					dd: 'ddd'
				}
			}, 'put').then(data => {
				console.log(data)
			})
		</script>
	</body>
</html>
